
//项目参数
const userPermitted = "permitted";
const area_safe = "area_safe";
const vod_ids = "vod_ids";
const vod_id = "vod_id";
const is_share = "is_share";
const image_host = "https://www.fangdong.host/res/redpackage/";
const qr_host = "https://www.fangdong.host:8444/movice";
const request_host = "https://www.forests.host:18082/movice";
const wx_app_id = "wxa5c1827108cdddc0";
const downMap = new Map();


// 广告
const rewardedAdUnitId='adunit-f0d664c36d17800c';
const interstitialAdUnitId = 'adunit-28f7feb2f1c3c5b5';
const adUnitid = 'adunit-d65baccbcd5f3c71';

let check = {};


check.dispatch = function(needReload = false){
	let userInfo = uni.getStorageSync('userInfo');
	let is_pass = (userInfo.user_status == '2') && (userInfo.user_pid != null) && (userInfo.user_pid>0);
	if(!is_pass && needReload){
		uni.reLaunch({
			url: '/pages/index/index'
		})
		return false;
	}
	return is_pass;
}

export default{
	rewardedAdUnitId,
	interstitialAdUnitId,
	adUnitid,
	userPermitted,
	vod_ids,
	vod_id,
	is_share,
	area_safe,
	image_host,
	downMap,
	check,
	request_host,
	wx_app_id,
	qr_host
}
